﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace DoAnB
{
    public static class Session
    {
        private static int maNV;
        private static String tenNV;
        //private static String username;
        //private static String session;
        private static bool isAdmin;

       

        public static void s(int Ma, String Ten, bool Admin)
        {
            maNV = Ma;
            tenNV = Ten;
            
            isAdmin = Admin;
            
        }
        public static bool _isAdmin
        {
            get { return isAdmin; }
            
        }

        public static int _MaNV
        {
            get { return maNV; }
            set { maNV = value; }
        }

        public static String _TenNV
        {
            get { return tenNV; }
            set { tenNV = value; }
        }

        //public static String _Username
        //{
        //    get { return username; }
        //    set { username = value; }
        //}

        //public static String _Session
        //{
        //    get
        //    {
        //        return session;
        //    }
        //    set { session = username; }
        //}
    }
}
